package database.domain;

/**
 * Description: column infomation
 * Created by E440 on 2017/5/18.
 */
public class ColumnInfo {
    private String columnName;

    private int typeInt;

    private String typeName;

    private int columnSize;

    private int decimalDigits;

    private boolean nullAble;

    private String remarks;

    public ColumnInfo() {
    }

    public ColumnInfo(String columnName, int typeInt, String typeName, int columnSize, int decimalDigits, boolean nullAble, String remarks) {
        this.columnName = columnName;
        this.typeInt = typeInt;
        this.typeName = typeName;
        this.columnSize = columnSize;
        this.decimalDigits = decimalDigits;
        this.nullAble = nullAble;
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "ColumnInfo{" +
                "columnName='" + columnName + '\'' +
                ", typeInt=" + typeInt +
                ", typeName='" + typeName + '\'' +
                ", columnSize=" + columnSize +
                ", decimalDigits=" + decimalDigits +
                ", nullAble=" + nullAble +
                ", remarks='" + remarks + '\'' +
                '}';
    }



    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public int getTypeInt() {
        return typeInt;
    }

    public void setTypeInt(int typeInt) {
        this.typeInt = typeInt;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public int getColumnSize() {
        return columnSize;
    }

    public void setColumnSize(int columnSize) {
        this.columnSize = columnSize;
    }

    public int getDecimalDigits() {
        return decimalDigits;
    }

    public void setDecimalDigits(int decimalDigits) {
        this.decimalDigits = decimalDigits;
    }

    public boolean isNullAble() {
        return nullAble;
    }

    public void setNullAble(boolean nullAble) {
        this.nullAble = nullAble;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
